package cn.kgc.watch.mapper;

import cn.kgc.watch.entity.Cart;
import org.apache.ibatis.annotations.Param;

public interface CartMapper {
    Cart selectCartByUserId(@Param("userId") Integer userId);
    Cart selectCartById(@Param("id")Integer id);
    void updateCart(@Param("id") Integer id,@Param("price") Double price);
    //张浩写
    Cart selectCartSku(Integer id);
    //张浩写
    void insertCart(Cart cart);
}
